#!/bin/bash

BIN_PATH=bin
SRC_PATH=com
run_class=$1
shift
args=( "$@" )
run_args=""
for arg in "${args[@]}"; do
    if [ "$arg" != "$file" ]; then
        run_args="$run_args $arg"
    fi
done

rm -rf bin 
mkdir bin

#javac -nowarn -d bin/ com/fourinone/*.java com/cachemain/*.java com/simplecompute/*.java com/completecompute/*.java com/DTC/*.java >> /dev/null 2>&1
# javac -nowarn -d bin/ com/DTC/*.java >> /dev/null 2>&1
javac -nowarn -d bin/ com/fourinone/*.java com/completecompute/*.java >> /dev/null 2>&1
# java -cp .:bin/:META_INF/ com.cachemain.$run_class $run_args
# java -cp .:bin/:META_INF/ com.DTC.$run_class $run_args
java -cp .:bin/:META_INF/ com.completecompute.$run_class $run_args


